package com.woniu.idearbac.mapper;

import com.woniu.idearbac.dto.PerDTO;
import com.woniu.idearbac.entity.SysPermission;
import com.woniu.idearbac.vo.PermissionVo;
import com.woniu.idearbac.vo.TreeNode;

import java.util.List;

/**
* @author PC
* @description 针对表【sys_permission】的数据库操作Mapper
* @createDate 2022-11-30 18:37:03
* @Entity com.woniu.idearbac.entity.SysPermission
*/
public interface SysPermissionMapper {
    List<String> selectPermissionByTel(String tel);
    int del(Integer rid);

    int add(PerDTO perDTO);

    List<TreeNode>  selectAllPer(Integer pid);

    List<Integer> selectPerByRid(Integer rid);

    List<PermissionVo> selMenu(String tel, Integer pid);
    int deleteByPrimaryKey(Long id);

    int insert(SysPermission record);

    int insertSelective(SysPermission record);

    SysPermission selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysPermission record);

    int updateByPrimaryKey(SysPermission record);

}
